package com.jkhan.design;

import com.alibaba.fastjson.JSON;
import com.jkhan.design.mq.OrderMq;

/**
 * @ClassName OrderMqService
 * @Description OrderMqService
 * @Author hjk
 * @Date 2023/2/13 23:12
 **/
public class OrderMqService {

    public void onMessage(String message) {
        OrderMq mq = JSON.parseObject(message, OrderMq.class);

        mq.getUid();
        mq.getOrderId();
        mq.getCreateOrderTime();

        // ... 处理自己的业务
    }

}
